<?php include_partial('menu')?>
<div class="formGeneral" style="margin-top: 20px;">
<h1 style="margin-top: 20px;">Lista de Control de Llamada</h1>
<table border="0" cellspacing="0" cellpadding="0" width="80%" class="operadorServicio" style="margin-top: 20px;">
    <tr class="mensajeEntrada mensajeList">
      <th>Agente</th>
      <th>Telefono</th>      
      <th>Motivo</th>
      <th>Quien</th>
      <th>Nota</th>
      <th>Creado el:</th>
      <th  colspan="2">Acciones</th>
    </tr>
    <?php foreach ($pager->getResults() as $control_llamada): ?>
    <tr class="addEtiquetaFila mensajeEntrada mensajeList">
      <td><?php echo $control_llamada->getAgente() ?></td>
      <td><?php echo $control_llamada->getTelefonoEmpresa() ?></td>
      <td><?php echo $control_llamada->getControlLlamadaMotivo() ?></td>
      <td><?php echo $control_llamada->getQuien() ?></td>
      <td><?php echo $control_llamada->getNota() ?></td>
      <td><?php echo $control_llamada->getCreatedAt() ?></td>
      <td  colspan="2"><a href="javascript:null(0)" onclick="javascript:MenuOpen('<?php echo url_for('controlLlamada/edit?id='.$control_llamada->getId()) ?>','600','700','<?php echo $idUser;?>')">Editar</a></td>
    </tr>
    <?php endforeach; ?>
    <tr  class="mensajeEntrada mensajeList" ><td colspan="7" height="10px" class="operadorTableFondo"><div class="operadorTableEsp"></div></td></tr>
</table>
</div>
<!--Paginacion de Clientes ------------------------------------------------>
<table id="paginacion" class="gradientGray">
    <tr><td  align="left" style="padding-left: 10px;">
    
<?php if ($pager->haveToPaginate()): ?>
    <?php echo link_to('&laquo;', 'controlLlamada/index?page='.$pager->getFirstPage(), array('class'  => 'paginacionBoton')) ?>
    <?php echo link_to('&lt;', 'controlLlamada/index?page='.$pager->getPreviousPage(), array('class'  => 'paginacionBoton')) ?>
    <?php $links = $pager->getLinks();
        foreach ($links as $page): ?>
        <?php echo ($page == $pager->getPage()) ? "<font class=\"paginacionBotonOff\">".$page."</font>" : link_to($page, 'controlLlamada/index?page='.$page, array('class'  => 'paginacionBoton')) ?>
        <?php if ($page != $pager->getCurrentMaxLink()): ?>     <?php endif ?>
        <?php endforeach ?>
    <?php echo link_to('&gt;', 'controlLlamada/index?page='.$pager->getNextPage(), array('class'  => 'paginacionBoton')) ?>
    <?php echo link_to('&raquo;', 'controlLlamada/index?page='.$pager->getLastPage(), array('class'  => 'paginacionBoton')) ?>
 <?php endif ?>
    </td><td align="right" style="margin-right: 10px;">
     <?php echo "<font class=\"paginacionStatus\" > Total Registros ". number_format($pager->getNbResults(),0,'','.')." <b>( ".number_format($pager->getFirstIndice(),0,'','.')."</b> hasta <b>".number_format($pager->getLastIndice(),0,'','.')." )</b></font>"; ?>
    </td>
    </tr>
</table>
<!--Paginacion de Clientes ------------------------------------------------>
